<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Página de Teste Cliente</title>
    </h:head>
    <h:body>
        
        <h:form>
            <h:panelGrid columns="2">      
                Nome: <h:inputText id="NomeTxt" value = "#{clienteBeanTeste.cliente.nome}"/>            
                Senha: <h:inputText id="SenhaTxt" value = "#{clienteBeanTeste.cliente.senha}"/>

                <h:inputHidden/>
                <h:commandButton value = "Cadastrar" action = "#{clienteBeanTeste.adicionaCliente}"/>       
            </h:panelGrid> 
            <h:dataTable value="tabela">
                <h:column>
                    <f:facet name ="header">
                        Nome
                    </f:facet>
                    <h:outputText value="nome"/>
               </h:column>
                <h:column>
                    <f:facet name =" header">
                        Email                    
                    </f:facet>
                    <h:outputText value="email"/>
                </h:column>
                <h:column>
                    <f:facet name ="senha">
                        Senha                   
                    </f:facet>
                <h:outputText value="senha"/>                    
                </h:column>
                
                
            </h:dataTable>
        </h:form>            
    </h:body>
</html>

